;; Examples of list and pair operations

;; Creating lists with the list procedure
(list)
(list 1)
(list 1 2 3)

;; Creating pairs with cons
(cons 1 2)
(cons 1 (cons 2 (cons 3 '())))

;; Using pair? predicate
(pair? (list 1 2))
(pair? 1)
(pair? '())

;; Using car and cdr
(car (list 1 2 3))
(cdr (list 1 2 3))